<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="layui-v2.7.6/layui/css/layui.css">
    <script src="./layui-v2.7.6/layui/layui.js"></script>
</head>

<body>
    <script>

        //声明使用弹出层模块、form模块
        layui.use(['layer', 'form'], function () {
            var layer = layui.layer
                , form = layui.form;

            layer.msg('Hello World');
        });
    </script>
</body>

</html>